<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      body {
        font: 14px/1.5 Helvetica Neue, Helvetica, Arial, Microsoft Yahei,
          Hiragino Sans GB, Heiti SC, WenQuanYi Micro Hei, sans-serif;
      }
      /* 样式重置化 */
      * {
        margin: 0;
        padding: 0;
        /* 
            将盒子的边框和内边距算在宽高内
            盒子总宽度  = width + padding * 2 + border * 2
            盒子总高度  = height + padding * 2 + border * 2
         */
        box-sizing: border-box;
      }

      #box {
        /* 总宽是234，总高是460 */
        width: 234px;
        height: 460px;
        background-color: blue;
        margin: 50px auto;
        background-color: #84807f;
      }

      #box .list {
        list-style-type: none;
        padding: 20px 0px;
      }

      #box .list .item {
        /* 设置弹性布局盒子 */
        display: flex;
        justify-content: space-between;
        /* 给容器高度和行高设置一样，可以让内部的单行文本垂直居中 */
        height: 42px;
        line-height: 42px;
        padding-left: 30px;
        padding-right: 26px;
        color: #fff;
        font-size: 14px;
      }

      #box .list .item:hover {
        background-color: #ff6700;
      }
    </style>
  </head>
  <body>
    <div id="box">
      <ul class="list">
        <li class="item">
          <span class="text">手机</span>
          <span class="arrow">></span>
        </li>
        <li class="item">
          <span class="text">笔记本</span>
          <span class="arrow">></span>
        </li>
        <li class="item">
          <span class="text">电视机</span>
          <span class="arrow">></span>
        </li>
        <li class="item">
          <span class="text">手机</span>
          <span class="arrow">></span>
        </li>
        <li class="item">
          <span class="text">手机</span>
          <span class="arrow">></span>
        </li>
        <li class="item">
          <span class="text">手机</span>
          <span class="arrow">></span>
        </li>
        <li class="item">
          <span class="text">手机</span>
          <span class="arrow">></span>
        </li>
        <li class="item">
          <span class="text">手机</span>
          <span class="arrow">></span>
        </li>
        <li class="item">
          <span class="text">手机</span>
          <span class="arrow">></span>
        </li>
        <li class="item">
          <span class="text">手机</span>
          <span class="arrow">></span>
        </li>
      </ul>
    </div>
  </body>
</html>
